<div class="box-body" style="display: block;">
    <form method="POST" action="/xqc/overseas-in/os-upload" class="form-horizontal" accept-charset="UTF-8" enctype="multipart/form-data">
        <div class="box-body fields-group">
            <br/>
            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-5">
                    <label style="padding-top: 8px;" for="download" class="col-sm-3 control-label">下载模版</label>
                    <div class="col-sm-8">
                        <a class="btn btn-sm btn-info" target="_blank"
                           href="{{ url("xqc/overseas-in/os-dropshipping-template?temp=OS_DELIVERY") }}">
                            <i class="fa fa-download"></i>&nbsp;&nbsp;下载(中转)模版</a>
                    </div>
                </div>
            </div>
            <br/>

            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-5">
                    <label style="padding-top: 8px;" for="plat_id" class="col-sm-3 control-label"><span style="color: red">*</span> 平台</label>
                    <div class="col-sm-8">
                        <select id="plat_id" name="param[plat_id]" required>
                            {{ getOptions(\App\Models\Basics\SysPlat::$_platformNormal, \App\Models\Basics\SysPlat::PLAT_AMAZON) }}
                        </select>
                        <span class="help-block"><i class="fa fa-info-circle"></i>&nbsp;请选择对应的平台（默认: Amazon）</span>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-5">
                    <label style="padding-top: 8px;" for="is_fnsku" class="col-sm-3 control-label"><span style="color: red">*</span> 是否标贴</label>
                    <div class="col-sm-8">
                        <select id="is_fnsku" name="param[is_fnsku]" required>
                            <option value="1" selected>是</option>
                            <option value="2" >否</option>
                        </select>
                        <span class="help-block"><i class="fa fa-info-circle"></i>&nbsp;选“否”：模版中FNSKU列不需要填系统会自动匹配SKU列的值</span>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-5">
                    <label style="padding-top: 8px;" for="warehouse_id_1" class="col-sm-3 control-label"><span style="color: red">*</span> 目的仓库</label>
                    <div class="col-sm-8">
                        <select id="warehouse_id_1" name="param[warehouse_id]" required>
                            {{ getOptions(\App\Models\OverSeasBa\Warehouse::options()) }}
                        </select>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-5">
                    <label style="padding-top: 8px;" class="col-sm-3 control-label"><span style="color: red">*</span> 文件</label>
                    <div class="col-sm-8">
                        <input type="file" style="margin-top: 4px;" name="source_file" accept=".xlsx,.xls" required>
                        <span class="help-block"><i class="fa fa-info-circle"></i>&nbsp;文件后缀为.xlsx或.xls</span>
                    </div>
                </div>
            </div>
            <!-- 海外仓发货单-中转 -->
            <input type="hidden" name="param[delivery_type]" value="{{ \App\Models\OverSeasIn\Delivery::OS_DELIVERY_TRANSFER }}">

            @include('layouts.upload.help')
        </div>
        <div class="box-footer">
            <div class="col-md-3"></div>
            <div class="col-md-5" style="text-align: center;">
                <div class="btn-group">
                    {{ csrf_field() }}
                    <input type="hidden" name="action" value="Delivery">
                    <button type="submit" class="btn btn-info">提交</button>
                </div>
            </div>
        </div>
    </form>
</div>
<script language="JavaScript" type="text/javascript">
    $(function () {
        $('#plat_id').select2({placeholder: '平台', allowClear: true, width: '147px'});
        $('#warehouse_id_1').select2({placeholder: '仓库', allowClear: true, width: '147px'});
        $('#is_fnsku').select2({placeholder: '是否标贴', allowClear: true, width: '147px'});
    });
</script>
